home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form Form1
- Appearance = 0 'Flat
- BackColor = &H00C0C0C0&
- Caption = "ReSize Sample Application"
- ClientHeight = 4785
- ClientLeft = 1245
- ClientTop = 1275
- ClientWidth = 6405
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 700
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 5190
- Icon = "FORM1.frx":0000
- Left = 1185
- LinkTopic = "Form1"
- ScaleHeight = 4785
- ScaleWidth = 6405
- Top = 930
- Width = 6525
- Begin VB.CommandButton Command8
- Appearance = 0 'Flat
- BackColor = &H80000005&
- Caption = "Center Form"
- BeginProperty Font
- name = "Arial"
- charset = 0
- weight = 700
- size = 7.5
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 4680
- TabIndex = 21
- Top = 3720
- Width = 1335
- End
- Begin VB.CommandButton Command7
- Appearance = 0 'Flat
- BackColor = &H80000005&
- Caption = "Tab Demo"
- BeginProperty Font
- name = "Arial"
- charset = 0
- weight = 700
- size = 7.5
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 3240
- TabIndex = 20
- Top = 3720
- Width = 1335
- End
- Begin VB.CommandButton Command6
- Appearance = 0 'Flat
- BackColor = &H80000005&
- Caption = "Enable Form Minimum Sizing"
- BeginProperty Font
- name = "Arial"
- charset = 0
- weight = 700
- size = 7.5
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 360
- TabIndex = 19
- Top = 4200
- Width = 2775
- End
- Begin VB.CommandButton Command5
- Appearance = 0 'Flat
- BackColor = &H80000005&
- Caption = "Line Demo"
- BeginProperty Font
- name = "Arial"
- charset = 0
- weight = 700
- size = 7.5
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 1800
- TabIndex = 18
- Top = 3720
- Width = 1335
- End
- Begin VB.CommandButton Command4
- Appearance = 0 'Flat
- BackColor = &H80000005&
- Caption = "Move things around"
- BeginProperty Font
- name = "Arial"
- charset = 0
- weight = 700
- size = 7.5
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 3240
- TabIndex = 17
- Top = 4200
- Width = 2775
- End
- Begin VB.CommandButton Command3
- Appearance = 0 'Flat
- BackColor = &H80000005&
- Caption = "Change Fonts"
- BeginProperty Font
- name = "Arial"
- charset = 0
- weight = 700
- size = 7.5
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 360
- TabIndex = 16
- Top = 3720
- Width = 1335
- End
- Begin VB.CommandButton Command2
- Appearance = 0 'Flat
- BackColor = &H80000005&
- Caption = "Help"
- BeginProperty Font
- name = "Arial"
- charset = 0
- weight = 700
- size = 7.5
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 372
- Left = 4800
- TabIndex = 15
- Top = 720
- Width = 1332
- End
- Begin VB.Frame Frame1
- Appearance = 0 'Flat
- BackColor = &H00C0C0C0&
- Caption = "Misc. Info"
- BeginProperty Font
- name = "Arial"
- charset = 0
- weight = 700
- size = 7.5
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 972
- Left = 960
- TabIndex = 14
- Top = 2280
- Width = 4452
- Begin VB.CheckBox Check1
- Appearance = 0 'Flat
- BackColor = &H00C0C0C0&
- Caption = "Current Client?"
- BeginProperty Font
- name = "Arial"
- charset = 0
- weight = 700
- size = 7.5
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 252
- Left = 240
- TabIndex = 5
- Top = 360
- Width = 1572
- End
- Begin VB.OptionButton Option1
- Appearance = 0 'Flat
- BackColor = &H00C0C0C0&
- Caption = "Male"
- BeginProperty Font
- name = "Arial"
- charset = 0
- weight = 700
- size = 7.5
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 252
- Left = 2520
- TabIndex = 6
- Top = 360
- Width = 1212
- End
- Begin VB.OptionButton Option2
- Appearance = 0 'Flat
- BackColor = &H00C0C0C0&
- Caption = "Female"
- BeginProperty Font
- name = "Arial"
- charset = 0
- weight = 700
- size = 7.5
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 252
- Left = 2520
- TabIndex = 7
- Top = 600
- Width = 1332
- End
- End
- Begin VB.CommandButton Command1
- Appearance = 0 'Flat
- BackColor = &H80000005&
- Caption = "Exit"
- BeginProperty Font
- name = "Arial"
- charset = 0
- weight = 700
- size = 7.5
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 372
- Left = 4800
- TabIndex = 8
- Top = 240
- Width = 1332
- End
- Begin VB.TextBox Text5
- Appearance = 0 'Flat
- BeginProperty Font
- name = "Arial"
- charset = 0
- weight = 700
- size = 7.5
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 288
- Left = 5040
- TabIndex = 4
- Top = 1440
- Width = 732
- End
- Begin VB.TextBox Text4
- Appearance = 0 'Flat
- BeginProperty Font
- name = "Arial"
- charset = 0
- weight = 700
- size = 7.5
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 288
- Left = 3960
- TabIndex = 3
- Top = 1440
- Width = 372
- End
- Begin VB.TextBox Text3
- Appearance = 0 'Flat
- BeginProperty Font
- name = "Arial"
- charset = 0
- weight = 700
- size = 7.5
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 288
- Left = 1320
- TabIndex = 2
- Top = 1440
- Width = 1812
- End
- Begin VB.TextBox Text2
- Appearance = 0 'Flat
- BeginProperty Font
- name = "Arial"
- charset = 0
- weight = 700
- size = 7.5
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 288
- Left = 1320
- TabIndex = 1
- Top = 960
- Width = 2772
- End
- Begin VB.TextBox Text1
- Appearance = 0 'Flat
- BeginProperty Font
- name = "Arial"
- charset = 0
- weight = 700
- size = 7.5
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 288
- Left = 1320
- TabIndex = 0
- Top = 480
- Width = 2772
- End
- Begin ResizeLibCtl.ReSize ReSize1
- Left = 5760
- Top = 2160
- _Version = 65542
- _ExtentX = 741
- _ExtentY = 741
- _StockProps = 0
- Enabled = -1 'True
- FormMinWidth = 0
- FormMinHeight = 0
- End
- Begin VB.Line Line1
- BorderWidth = 4
- X1 = 360
- X2 = 6000
- Y1 = 3600
- Y2 = 3600
- End
- Begin VB.Label Label5
- Alignment = 1 'Right Justify
- Appearance = 0 'Flat
- BackColor = &H00C0C0C0&
- BackStyle = 0 'Transparent
- Caption = "Zip:"
- BeginProperty Font
- name = "Arial"
- charset = 0
- weight = 700
- size = 7.5
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 252
- Left = 4320
- TabIndex = 9
- Top = 1440
- Width = 612
- End
- Begin VB.Label Label4
- Alignment = 1 'Right Justify
- Appearance = 0 'Flat
- BackColor = &H00C0C0C0&
- BackStyle = 0 'Transparent
- Caption = "State:"
- BeginProperty Font
- name = "Arial"
- charset = 0
- weight = 700
- size = 7.5
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 252
- Left = 3120
- TabIndex = 10
- Top = 1440
- Width = 732
- End
- Begin VB.Label Label3
- Alignment = 1 'Right Justify
- Appearance = 0 'Flat
- BackColor = &H00C0C0C0&
- BackStyle = 0 'Transparent
- Caption = "City:"
- BeginProperty Font
- name = "Arial"
- charset = 0
- weight = 700
- size = 7.5
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 252
- Left = 480
- TabIndex = 11
- Top = 1440
- Width = 732
- End
- Begin VB.Label Label2
- Alignment = 1 'Right Justify
- Appearance = 0 'Flat
- BackColor = &H00C0C0C0&
- BackStyle = 0 'Transparent
- Caption = "Address:"
- BeginProperty Font
- name = "Arial"
- charset = 0
- weight = 700
- size = 7.5
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 252
- Left = 360
- TabIndex = 12
- Top = 960
- Width = 852
- End
- Begin VB.Label Label1
- Alignment = 1 'Right Justify
- Appearance = 0 'Flat
- BackColor = &H80000005&
- BackStyle = 0 'Transparent
- Caption = "Name:"
- BeginProperty Font
- name = "Arial"
- charset = 0
- weight = 700
- size = 7.5
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 252
- Left = 600
- TabIndex = 13
- Top = 480
- Width = 612
- End
- Attribute VB_Name = "Form1"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub Command1_Click()
- End
- End Sub
- Private Sub Command2_Click()
- Form2.Show 1
- End Sub
- Private Sub Command3_Click()
- If Label1.FontName = "Arial" Then
- Label1.FontName = "Times New Roman"
- Label2.FontName = "Times New Roman"
- Label3.FontName = "Times New Roman"
- Label4.FontName = "Times New Roman"
- Label5.FontName = "Times New Roman"
- Else
- Label1.FontName = "Arial"
- Label2.FontName = "Arial"
- Label3.FontName = "Arial"
- Label4.FontName = "Arial"
- Label5.FontName = "Arial"
- End If
- End Sub
- Private Sub Command4_Click()
- Dim Temp As Integer
- Option2.Left = Check1.Left
- Temp = Check1.Left
- Check1.Left = Option1.Left
- Option1.Left = Temp
- End Sub
- Private Sub Command5_Click()
- Form3.Show 1
- End Sub
- Private Sub Command6_Click()
- If Command6.Caption = "Enable Form Minimum Sizing" Then
- Command6.Caption = "Disable Form Minimum Sizing"
- ReSize1.FormMinWidth = 4000
- ReSize1.FormMinHeight = 3000
- MsgBox "The smallest size you can make this form has been set to 3000 X 4000 twips.", 0, "ReSize Sample Application"
- Else
- Command6.Caption = "Enable Form Minimum Sizing"
- ReSize1.FormMinWidth = 0
- ReSize1.FormMinHeight = 0
- MsgBox "The minimum form size restriction has been turned off.", 0, "ReSize Sample Application"
- End If
- End Sub
- Private Sub Command7_Click()
- Form4.Show 1
- End Sub
- Private Sub Command8_Click()
- If Form1.WindowState = 0 Then
- 'VB will give you an error if
- 'the form is minimized or maximized
- 'when you try to execute this method.
- ReSize1.CenterForm
- End If
- End Sub
-